           package com.java.diagnostics.visualizer.impl.data;
           
           import com.java.diagnostics.visualizer.data.StructuredDataBuilder;
           import com.java.diagnostics.visualizer.data.ids.ID;
           import com.java.diagnostics.visualizer.impl.data.ids.StructuredIDImpl;
           import java.util.Map;
           import java.util.Set;
           import java.util.TreeMap;
           
           public class StructuredDataImpl extends DomainDataImpl
             implements StructuredDataBuilder
           {
             protected Map data;
           
             public StructuredDataImpl(String label, String displayName, String category, Map data)
             {
               super(label, displayName, category);
               this.data = data;
             }
           
             public StructuredDataImpl(String label, String displayName, String category)
             {
               this(label, displayName, category, new TreeMap());
             }
           
             public Set getColumnNames()
             {
               return this.data.keySet();
             }
           
             public Map getContents() {
               return this.data;
             }
           
             protected ID generateID() {
               return new StructuredIDImpl(getCategory(), this.label);
             }
           
             public boolean isEmpty()
             {
               return this.data.size() == 0;
             }
           
             public void put(String key, Object value) {
               this.data.put(key, value);
             }
           
             public int size()
             {
               return this.data.size();
             }
           }

